package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import server.business.pojo.DestoryWay;
import server.business.service.DestoryWayService;
import server.business.utils.results.lrz.Result;

import java.util.List;
@RestController
@RequestMapping("/DestoryWay")
public class DestoryWayController {
    @Autowired
    DestoryWayService destoryWayService;

    @GetMapping(value = "/normal/getName")
    public Result getName() {
        List<DestoryWay> destoryWays = destoryWayService.list();
        return Result.success(destoryWays);
    }
}
